<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="menu" value="400" scope="application"/>
<c:url var="page_url" value="/plugin/config" scope="page"/>
<head>
    <title>lynx-android插件</title>
    <style type="text/css">
        #windowAlertModal .modal-footer {
            text-align: center;
        }
    </style>
</head>
<body>
<div class="container">
    <table class="table table-bordered table-striped" style="background-color: rgb(222, 246, 218)" align="center">
        <tr align="center">
            <th class="success" width="15%">Model</th>
            <th class="success" width="80%">Detail</th>
        </tr>
        <c:forEach items="${plugins}" var="plugin">
        <tr align="center">
            <td valign="middle">
                <h3 style="margin-top: 50%">${plugin.module}</h3>
                <div class="btn-group" style="margin-top: 5%">
                    <button id="saveConfirm" type="button" class="btn btn-default" data-toggle="modal" data-target="#myModal">更新</button>
                    <button id="deleteConfirm" type="button" class="btn btn-default" data-toggle="modal" data-target="#myModal">删除</button>
                </div>
            </td>
            <td>
                <div class="input-group">
                    <input type="text" class="form-control plugin-url" value="${plugin.url}">
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-save" type="button">更新</button>
                    </span>
                </div>
                <div class="input-group">
                    <input type="text" class="form-control plugin-version" value="${plugin.version}">
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-save" type="button">更新</button>
                    </span>
                </div>
                <div class="input-group">
                    <input type="text" class="form-control plugin-name" value="${plugin.name}">
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-save" type="button">更新</button>
                    </span>
                </div>
                <div class="input-group">
                    <input type="text" class="form-control plugin-icon" value="${plugin.icon}">
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-save" type="button">更新</button>
                    </span>
                </div>
                <div class="input-group">
                    <input type="text" class="form-control plugin-desc" value="${plugin.desc}">
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-save" type="button">更新</button>
                    </span>
                </div>
                <div class="input-group">
                    <input type="text" class="form-control plugin-md5" value="${plugin.md5}">
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-save" type="button">更新</button>
                    </span>
                </div>
                <div class="input-group">
                    <input type="text" class="form-control plugin-class" value="${plugin.clazz}">
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-save" type="button">更新</button>
                    </span>
                </div>
                <div class="input-group">
                    <input type="text" class="form-control plugin-category" value="${plugin.category}">
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-save" type="button">更新</button>
                    </span>
                </div>
            </td>
        </tr>
        </c:forEach>
    </table>

    <ul id="pagination-demo" class="pagination-sm" style="margin-top: -5px; float: right"
        page-size="${pageSize}" cur-page="${pageNo}" base-url="${page_url}"/>

</div>


<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">提示</h4>
            </div>
            <div class="modal-body">
                是否要提交这次更改?&hellip;
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">确认</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">取消</button>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="${pageContext.request.contextPath}/js/biz/plugin_store.js"></script>

</body>